/**
 * @author ens12ilt - ens12ple
 */

package model.neuralnetwork;

import java.util.ArrayList;

public class NeuronLayer {

	private int _numberOfNeuronInLayer;
	private ArrayList<Neuron> _neuronLayer;
	
	/**
	 * 
	 * @param numberOfNeuron number of neurons of this layer.
	 * @param numberInputPerNeuron number of inputs for each neuron
	 */
	public NeuronLayer(int numberOfNeuron, int numberInputPerNeuron){
		_numberOfNeuronInLayer = numberOfNeuron;
		_neuronLayer = new ArrayList<Neuron>();
		// Creating the layer
		for(int i = 0; i < _numberOfNeuronInLayer; i++){
			_neuronLayer.add(new Neuron(numberInputPerNeuron));
		}
	}
	
	public Neuron getNeuronInLayer(int i){
		return _neuronLayer.get(i);
	}
	
	public int getLayerSize(){
		return _neuronLayer.size();
	}
}
